﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shop/view.master" AutoEventWireup="true"
    CodeBehind="list.aspx.cs" Inherits="ZF.WS.shop.list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="location mb10_">
        您现在的位置：<a href="/"><%=SiteInfo.Instance.SystemConfig.SiteName %></a> >> <a href="<%=this.Request.Url %>">
            商品列表</a>
    </div>
    <style>
        .listmerc { width: 714px;   }
        .listmerc dt a { width: 300px; }
        .listmerc dt a:hover { }
        .listmerc dd { padding: 3px 0px; border-bottom: 1px dashed #eee; }
        .listmerc dd.d1 { background: #fdfdfd; }
        .listmerc td { text-align: left; color: #696969; }
        .listmerc td p { line-height: 25px; height: 25px; }
        .listmerc .td0 { width: 84px; padding: 5px; }
        .listmerc .td0 img { width: 80px;  ; border: 1px solid #eee; }
        .listmerc .td1 { width: 340px; padding-top: 10px; vertical-align: top; font-size: 14px; }
        .listmerc .td1 p.title { height: 50px; font-size: 14px; }
        .listmerc .td1 p.title a { color: #0063DC; font-size: 14px; }
        .listmerc .td1 p.title a:hover { color: #f00; }
        .listmerc .td2 { width: 10px; }
        .listmerc .td3 { width: 190px; }
        .listmerc .td4 { }
        .listmerc a.buy { background: url(/image/buy.gif); margin: 0px 0px 0px 0px; width: 84px; height: 25px; color: #fff; font-weight: bold; font-size: 14px; line-height: 25px; display: block; text-align: center; float: left; }
        .listmerc a.addf { background: url(/image/addf.gif); margin: 0px 0px 0px 5px; width: 92px; height: 25px; color: #fff; font-weight: bold; font-size: 14px; line-height: 25px; display: block; text-align: center; float: left; }
        .listmerc span.cp { font-size: 18px; color: #E6540B; font-weight: bold; }
        .listmerc span.dc{ color:#339900}
    </style>
  <script>
      function copyBoardData(url) {
          window.clipboardData.setData('text', url);
          alert("复制网址成功");
      }
  </script>
 
  
  
  
  
    <div class="board listmerc  "  >
    
        <dl>
        <dt><p>商品列表</p></dt>
             
            <zf:ListView runat="server" ID="lvList">
                <LayoutTemplate>
                    <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                    </zf:PlaceHolder>
                </LayoutTemplate>
                <ItemTemplate>
                    <dd class="<%#Container.DataItemIndex % 2 == 0 ? "" : "d1" %>">
                        <table class="w100_">
                            <tr>
                                <td class="td0" >
                                     <div  style="width:80px; height;80px">
                                    <a href="/shop/info.aspx?id=<%#Eval("Merc.MerchandiseId") %>">
                                        <img src="/photo/shop/<%#Eval("Merc.FirstPhoto") %>"  /></a></div>
                                        
                                </td>
                                <td class="td1">
                                    <p class="title">
                                        品名： <a href="/shop/info.aspx?id=<%#Eval("Merc.MerchandiseId") %>">
                                            <%#Eval("Merc.Name")%></a>
                                        <%--<img src="/image/dj.gif" class="vam_ <%#((int)Eval("Merc.Integral"))!=0 ? "" : "dn_"%>" />--%>
                                        <img src="/image/hot-015.gif" class="vam_ <%#((bool)Eval("Merc.IsHot"))?"":"dn_"%>" />&nbsp;
                                        <img src="/image/zi-16.gif" class="vam_ <%#((bool)Eval("Merc.IsRecommend"))?"":"dn_"%>" />
                                    </p>
                                    <p>
                                        <a href="/shop/buy.aspx?id=<%#Eval("Merc.MerchandiseId") %>" class="buy">立即购买</a>
                                        <a href="/Person/shop/cellect.aspx?type=add&id=<%#Eval("Merc.MerchandiseId") %>"
                                            class="addf">加入收藏</a>
                                    </p>
                                </td>
                                <td class="td2">
                                </td>
                                <td class="td3">
                                   <p>
                                    价&nbsp;&nbsp;格：<span  class="cp"><%#Eval("Merc.CPrice")%>元</span>
                                        
                                    </p>
                                    <p class="<%#((bool)Eval("Merc.IsMember"))?"":"dn_"%>">
                                        会员价：<span class="cp"><%#Eval("Merc.MPrice")%>元</span></p>
                                 
                                    <%--<p class="<%#((decimal)Eval("Merc.Discount"))<10 ? "" : "dn_"%>">
                                        折 扣：<span class="dc"><%#((decimal)Eval("Merc.Discount")) < 10 ? Eval("Merc.Discount").ToString()+"折" : ""%></span>
                                        <img src="/image/zi-28.gif" style="width: 35px" />
                                    </p>--%>
                                    <%--<p class="<%#((bool)Eval("Merc.IsToPay"))?"":"dn_"%>">
                                        运 费：货到付款</p>
                                    <p class="<%#((bool)Eval("Merc.IsToPay"))?"dn_":""%>">
                                        运 费：<%#((decimal)Eval("Merc.Freight")) == 0 ? "实收" : Eval("Merc.Freight").ToString() + "元"%></p>--%>
                                </td>
                                <td class="td4">
                                    <p>
                                        &nbsp;库存：<%#  Eval("Merc.Quantity")%></p>
                                    <p>
                                        &nbsp;单位：<%#Eval("Merc.Unit")%></p>
                                    <p>
                                        <a href="javascript:" onclick="copyBoardData('http://<%#Request.Url.Authority %>/shop/info.aspx?id=<%#Eval("Merc.MerchandiseId")%>')">
                                            <img src="/image/zi-20.gif" /></a>
                                    </p>
                                </td>
                            </tr>
                        </table>
                    </dd>
                </ItemTemplate>
            </zf:ListView>
            <dd class="page">
                <table>
                    <tr>
                        <td>
                            <a href="<%=_param %>&pi=0">首 页</a> <a href="<%=_param %>&pi=<%=this.Pi > 0 ? Pi - 1 : 0 %>">
                                上一页</a> <a href="<%=_param %>&pi=<%=this.Pi+1 %>">下一页</a> <a href="<%=_param %>&pi=999999">
                                    未 页</a> &nbsp;
                        </td>
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
</asp:Content>
